package off;

import java.util.Scanner;

/**
 * @author lj
 * @Description: 输入三位数整数反转
 * @date 2020-10-23 21:18
 * @QQ 851477108
 */


public class ShuRFZ {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (sc.hasNext()){
            int a = sc.nextInt();
            String b = a%10 + "" + a/10%10 + "" + a/100%10;
            System.out.println(b);
        }
    }
}
